package lab02.test27;

import java.util.InputMismatchException;
import java.util.Scanner;

public class Test27 {
    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);

        try {
            System.out.print("请输入一个整型数字：");
            int num = scanner.nextInt();
            System.out.println(num);
        }catch(InputMismatchException e) {
            System.out.println("输入的数字不是整型！");
        }finally {
            System.out.println("此次运行结束！");
        }
    }
}
